package Test.Test2;

import java.io.File;
import java.io.FileOutputStream;
import java.util.Random;

/**
 * 333
 *2222
33333
 */
public class App {
	 public static void main(String[] args) {
	        try {
	            File file = new File("/Users/caogl/Desktop/dddd.txt");
	            if (!file.exists())
	                file.createNewFile();
	            FileOutputStream out = new FileOutputStream(file, true);
	            for (int i = 0; i <= 100000; i++) {
	            	Random dRandom=new Random();
	               int a= dRandom.nextInt(100000);
	                out.write((a + "\n").getBytes("utf-8"));
	            }
	            out.close();
	            System.err.println("结束");
	        } catch (Exception e) {
	            e.printStackTrace();
	        }
	    }
}
